<?php
use think\facade\Route;

Route::group('home',function (){
    Route::get('index1','Banner/index');
    Route::get('index2','Flower/index');
    Route::get('index3','News/index');
    Route::get('index4','Card/index');
    Route::get('index5','Commend/index');
    Route::get('index6','Gift/index');
    Route::get('index7','Goods/index');
})->allowCrossDomain([
    'Access-Control-Allow-Origin'        => '*',
//    'Access-Control-Allow-Credentials'   => 'true'
    'Access-Control-Allow-Methods' => '*',
    'Access-Control-Allow-Headers' => '*'
]);
Route::group('hyq',function (){
    Route::get('index1','Nav/index');
    Route::get('index2','Hyq/index');
    Route::post('add','Hyq/add');
    Route::post('dz','Hyq/dz');
    Route::post('delete','Hyq/delete');
})->allowCrossDomain([
    'Access-Control-Allow-Origin'        => '*',
//    'Access-Control-Allow-Credentials'   => 'true'
    'Access-Control-Allow-Methods' => '*',
    'Access-Control-Allow-Headers' => '*'
]);
Route::group('lang',function (){
    Route::get('index1','Lang/index');
})->allowCrossDomain([
    'Access-Control-Allow-Origin'        => '*',
//    'Access-Control-Allow-Credentials'   => 'true'
    'Access-Control-Allow-Methods' => '*',
    'Access-Control-Allow-Headers' => '*'
]);
Route::group('essay',function (){
    Route::post('index1','Essay/index');
})->allowCrossDomain([
    'Access-Control-Allow-Origin'        => '*',
//    'Access-Control-Allow-Credentials'   => 'true'
    'Access-Control-Allow-Methods' => '*',
    'Access-Control-Allow-Headers' => '*'
]);